<?php Schema::init(); ?>
<div class="schema_wrapper">
	<?php if ($error != -1) { ?>
		<div class="schema_message">
		<?php if (!$error) {
			Backend::infoMessage(__('Category deleted successfully'));
		} else {
			Backend::errorMessage(__('Error deleting category'));
		} ?>
		</div>
	<?php } else { ?>
		<div class="schema_header">
			<?php echo __('Delete category "{%cat_name%}"?', array('cat_name' => $info['name'])); ?>
		</div>
		<form action="<?php echo CURRENT_URL, $info['id']; ?>" method="post">
			<div class="schema_buttons">
				<input type="submit" value="<?php echo __('Delete'); ?>" class="btn btn-primary" />
				<input type="button" value="<?php echo __('Cancel'); ?>" class="btn" onclick="history.back()" />
			</div>
		</form>
	<?php } ?>
</div>